/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dto;

import java.io.Serializable;

/**
 *
 * @author lab
 */
public class User implements Serializable {

    private String username;
    private String password;
    private int roleNo;
    private boolean status;

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the roleNo
     */
    public int getRoleNo() {
        return roleNo;
    }

    /**
     * @param roleNo the roleNo to set
     */
    public void setRoleNo(int roleNo) {
        this.roleNo = roleNo;
    }

    /**
     * @return the status
     */
    public boolean isStatus() {
        return status;
    }

    /**
     * @param status the status to set
     */
    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean validate() {
        if (username.equals("") || password.equals("")) {
            return false;
        }
        return true;
    }
}
